/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aqlm.data;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.rainbow.annotation.xml.ParentAttr;

/**
 *
 * @author hironaga
 */
public class TimestampUdo {

    private static DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss:SS");

    @ParentAttr( attrName="value" )
    private Date lastUpdate;

    public Date getLastUpdate() {
        return lastUpdate;
    }

    public String getLastUpdateString(){
        return format.format(lastUpdate);
    }

    public void setLastUpdateString(String lastUpdateStr) {
        this.lastUpdate = UDOUtils.getOnDateType(lastUpdateStr, format);
    }

    public void setLastUpdate(Date lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

}
